﻿using System;
using System.Collections.Generic;
using System.Data.EntityClient;
using System.Data.Objects;
using System.Linq;
using System.Text;
using Model;

namespace Configuration
{
    public class Database : ObjectContext
    {
        public Database(EntityConnection connection)
            : base(connection)
        {
            //DefaultContainerName = "Model";
        }

        public ObjectSet<User> User
        {
            get { return base.CreateObjectSet<User>(); }
        }

        public ObjectSet<Product> Product
        {
            get { return base.CreateObjectSet<Product>(); }
        }

        public ObjectSet<Image> Image
        {
            get { return base.CreateObjectSet<Image>(); }
        }

        public ObjectSet<Category> Category
        {
            get { return base.CreateObjectSet<Category>(); }
        }

        public ObjectSet<Province> Province
        {
            get { return base.CreateObjectSet<Province>(); }
        }

        public ObjectSet<District> District
        {
            get { return base.CreateObjectSet<District>(); }
        }
    }
}
